package ack;

import ack.service.AckPublishServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class AckApplication implements CommandLineRunner {
    public static void main(String[] args) {
        SpringApplication.run(AckApplication.class,args);
    }


    @Autowired
    private AckPublishServiceImpl service;
    @Override
    public void run(String... args) throws Exception {
    // service.setMSG();
        service.getMSG();
    }
}
